<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8">
    <title>Phalanx Holding</title>

    <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
    <link rel="apple-touch-icon" href="/one/Public/img/star.jpg" />
      <link rel="icon" sizes="196x196" href="/one/Public/img/star.jpg">
      <!-- Bootstrap 3.3.4 -->
    <link href="/one/Public/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css" />    
    <meta http-equiv="X-UA-Compatible" content="IE=9" />
    <!-- FontAwesome 4.3.0 -->
    <link href="/one/Public/plugins/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
    <!-- Ionicons 2.0.0 -->
    <link href="/one/Public/plugins/ionicons-master/css/ionicons.min.css" rel="stylesheet" type="text/css" />
    <!-- Theme style -->
    <link href="/one/Public/dist/css/AdminLTE.min.css" rel="stylesheet" type="text/css" />

    <!-- AdminLTE Skins. Choose a skin from the css/skins 
         folder instead of downloading all of them to reduce the load. -->
    <link href="/one/Public/dist/css/skins/_all-skins.min.css" rel="stylesheet" type="text/css" />
       <!-- bootstrap wysihtml5 - text editor -->
    <link href="/one/Public/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.min.css" rel="stylesheet" type="text/css" />

    

    <!-- iCheck -->
    <link href="/one/Public/plugins/iCheck/flat/blue.css" rel="stylesheet" type="text/css" />
    <!-- Morris chart -->
    <link href="/one/Public/plugins/morris/morris.css" rel="stylesheet" type="text/css" />
    <!-- jvectormap -->
    <link href="/one/Public/plugins/jvectormap/jquery-jvectormap-1.2.2.css" rel="stylesheet" type="text/css" />
    <!-- Date Picker -->
    <link href="/one/Public/plugins/datepicker/datepicker3.css" rel="stylesheet" type="text/css" />
    <!-- Daterange picker -->
    <link href="/one/Public/plugins/daterangepicker/daterangepicker-bs3.css" rel="stylesheet" type="text/css" />

    
 
    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
        <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
  </head>

  <body class="skin-blue-light sidebar-mini sidebar-collapse">
    <div class="wrapper">
      
                   <header class="main-header">
          <!-- Logo -->
        <a href="<?php echo 'http://'.$_SERVER['SERVER_NAME'].U('/Index'); ?>" class="logo">
          <!-- mini logo for sidebar mini 50x50 pixels -->
          <span class="logo-mini"><b>P</b>HG</span>
          <!-- logo for regular state and mobile devices -->
          <span class="logo-lg"><b>Phalanx</b>Holding</span>
        </a>
        <!-- Header Navbar: style can be found in header.less -->
        <nav class="navbar navbar-static-top" role="navigation">
          <!-- Sidebar toggle button-->
          <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
            <span class="sr-only">Toggle navigation</span>
          </a>
          <div class="navbar-custom-menu">
            <ul class="nav navbar-nav">
                <?php if($clear_cache_btn): ?>
                <li class="list-langs"><a href="javascript:;" title="<?php echo (L("Update")); ?>" id="clear_cache_btn"><i class="fa fa-refresh"></i></a></li>
                <?php endif; ?>
                <li class="dropdown list-langs" style="position: relative">
                    <a href="<?php echo U('/Link/link'); ?>"  style="padding: 9px;">
                        <img src="/one/Public/img/favs-icon.png" style="max-width: 32px" title="<?php echo (L("Common Link")); ?>"/>
                        <span class="hidden-xs hidden-sm"><?php echo (L("Common Link")); ?></span>
                    </a>
                </li>

                <li class="dropdown list-langs">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                    <?php
 $langSet = cookie('think_language'); if (strtolower($langSet) == 'zh-cn') { ?>
                        <div class="flag flags-china pull-left"></div>&nbsp;<span class="hidden-xs">中文</span>
                    <?php
 } else { ?>
                        <div class="flag flags-american pull-left"></div>&nbsp;<span class="hidden-xs">English</span>
                   <?php
 } ?>
                    </a>
                    <ul class="dropdown-menu langs ">
                        <li ><a href="?l=zh-cn" class="list-langs clearfix"><div class="flag flags-china col-xs-6 col-md-6"></div><span class=" col-xs-6 col-md-6 text-black">中文</span></a> </li>
                        <li ><a href="?l=en-us" class="list-langs clearfix"><div class="flag flags-american col-xs-6 col-md-6"></div><span class="col-xs-6 col-md-6 text-black" >English</span></a></li>
                    </ul>
                </li>
              <!-- User Account: style can be found in dropdown.less -->
              <?php  $avatar == ''?$avatar = '/one/Public/dist/img/avatar5.png':$avatar; ?>
              <li class="dropdown user user-menu">
                <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                  <img src="<?php echo ($avatar); ?>" class="user-image" alt="User Image"/>
                  <span class="hidden-xs"><?php echo getUserName(); ?></span>
                </a>
                <ul class="dropdown-menu">
                  <!-- User image -->
                  <li class="user-header">
                    <img src="<?php echo ($avatar); ?>" class="img-circle" alt="User Image" />
                    <p>
                      <?php echo getUserName(); ?>
                    </p>
                  </li>
                  <li class="user-footer">
                    <div class="pull-left">
                      <a href="<?php echo U('/Index/editProfile'); ?>" class="btn btn-default btn-flat"><?php echo (L("Profile")); ?></a>
                        <!-- Profile-->
                    </div>
                    <div class="pull-right">
                      <a href="<?php echo U('/Public/logout'); ?>" class="btn btn-default btn-flat"><?php echo (L("Sign out")); ?></a>
                    </div>
                  </li>
                </ul>
              </li>
              <!-- Control Sidebar Toggle Button -->
              <!--<li>-->
                <!--<a href="#" data-toggle="control-sidebar"><i class="fa fa-gears"></i></a>-->
              <!--</li>-->
            </ul>
          </div>
        </nav>
      </header>
      
      
               <!-- Left side column. contains the logo and sidebar -->
      <aside class="main-sidebar ">
        <!-- sidebar: style can be found in sidebar.less -->
        <section class="sidebar">
          <!-- Sidebar user panel -->
          <div class="user-panel">
            <div class="pull-left image">
              <img src="<?php echo ($avatar); ?>" class="img-circle" alt="User Image" />
            </div>
            <div class="pull-left info ">
              <p><?php echo getUserName(); ?></p>

              <a href="#"><i class="fa fa-circle text-success"></i> Online</a>
            </div>
          </div>
          <!-- sidebar menu: : style can be found in sidebar.less -->
          <ul class="sidebar-menu">
            <li class="header">MAIN NAVIGATION</li>
              <?php if(is_array($groups)): $i = 0; $__LIST__ = $groups;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$group): $mod = ($i % 2 );++$i;?><li class="treeview <?php ?>  active <?php ?>">
                      <a href="#">
                          <i class="<?php echo $group['icon']==''? 'fa fa-th':$group['icon']; ?>"></i> <span><?php echo L($group['title']); ?></span>
                          <i class="fa fa-angle-left pull-right"></i>
                      </a>
                      <ul class="treeview-menu">
                          <?php if(is_array($menu[$group['id']])): $i = 0; $__LIST__ = $menu[$group['id']];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$item): $mod = ($i % 2 );++$i; if(($item['access']) == "1"): if(($item["level"]) == "3"): ?><li class=" <?php if ($item['name'] == $currunt_note) : ?> active <?php endif;?>">
									  <!-- $parents[$item['pid']]['name'].'/'. -->
                                          <a href="<?php echo U('/'.$item['name']); ?>" ><i class="fa fa-circle-o"></i><?php echo L($item['title']) ?></a>
                                      </li>
                                      <?php else: ?>
                                      <li class=" <?php if ($item['name'] == $currunt_note) : ?> active <?php endif;?>">
                                        <?php $color_arr = array('red','yellow','aqua','square','green','orange'); ?>
                                          <a href="<?php echo U('/'.$item['name']); ?>" ><i class="fa fa-circle-o text-<?php echo $color_arr[rand(0,5)] ?>"></i><?php echo L($item['title']) ?></a>
                                      </li><?php endif; endif; endforeach; endif; else: echo "" ;endif; ?>
                      </ul>
                  </li><?php endforeach; endif; else: echo "" ;endif; ?>
          </ul>
        </section>
        <!-- /.sidebar -->
      </aside>
      
      <!-- Content Wrapper. Contains page content -->
      <div class="content-wrapper">
        <!-- Content Header (Page header) -->
          
            <section class="content-header">
                    <!--<h1>-->
                        <!--<?php echo getNodeName($currunt_note); ?>-->
                        <!--<small>Control panel</small>-->
                    <!--</h1>-->
                    <div style="margin:0px 15px;">
                        <ol class="breadcrumb " style="margin: 0">
                            <li><a href="<?php echo 'http://'.$_SERVER['SERVER_NAME'].U('/Index'); ?>" title="<?php echo (L("Index")); ?>"><i class="fa fa-dashboard"></i> One </a></li>
                            <li class="active"><a href="/one/Index"><?php echo L($currunt_note); ?></a></li>
                        </ol>
                    </div>

            </section>
        
        <section class="content">
            <div class="alert alert-dismissable alert-success" id="top-alert" style="display:none">
                <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
                <h4> <div class="alert-title"></div></h4><div class="alert-content"></div>
            </div>

            
    <link rel="stylesheet" href="/one/Public/dist/css/bootstrapValidator.css"/>
    <link rel="stylesheet" href="/one/Public/fileinput/lightbox.css"/>
    <link rel="stylesheet" href="/one/Public/fileinput/fileinput2.css"/>
    <!--<link rel="stylesheet" href="/one/Public/fileinput/teach.css"/>-->
    <style>
        #ep_total_sales .chart-bar li , ul.chart-legend.chart-line li {
            float: left;
            margin: 0px 5px;
        }
        #ep_total_sales .chart-bar{padding-left:15px;}
        #home_video .caption{
            position: absolute;
            bottom: 0;
            width: 100%;
            color: #207ECE;
            left: 0;
            background-color: rgba(210,214,222,0.3);
            border-radius: 4px;
            height: 52px;
            background-image: none;
            display: none;
        }
        .outin {
            background: url(/one/Public/img/enter.png) center center no-repeat;
            display: inline-block;
            width: 30px;
            height: 30px;
        }
    </style>
    <!-- Main content -->
    <section class="content">
    <div class="row">
        <!--教程模块 -->
        <?php if (false): ?>
        <!-- 页面加载遮罩 -->
    <div class=mask></div>
    <!-- 教程模态框 -->
    <div class="teachmodal">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <h4 class="modal-title">教程学习</h4>
                </div>
                <div class="modal-body">
                    <p>您想进入教程吗？</p>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default yes">Yes</button>
                    <button type="button" class="btn btn-primary noteach">No</button>
                </div>
            </div><!-- /.modal-content -->
        </div><!-- /.modal-dialog -->
    </div><!-- /.modal -->
    <!-- 结束模态框 -->
    <div class="teachendmodal">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <h4 class="modal-title">教程结束</h4>
                </div>
                <div class="modal-body">
                    <p><h3>教程结束！</h3>点击"Yes",结束进程开始使用;<br/>点击"No",重新学习</p>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default noteach">Yes</button>
                    <button type="button" class="btn btn-primary end-no">No</button>
                </div>
            </div><!-- /.modal-content -->
        </div><!-- /.modal-dialog -->
    </div><!-- /.modal -->
    <!--教程提示小模块-->
    <div class="teachtip teachtip-link">
        <span>点击进入常用链接</span>
        <button type="button" class="btn btn-primary next-step next-step-link">下一步</button>
        <i class="i-link"></i>
    </div>
    <div class="teachtip teachtip-email">
        <span>点击进入邮件</span>
        <button type="button" class="btn btn-primary next-step next-step-email">下一步</button>
        <i class="i-email"></i>
    </div>
    <div class="teachtip teachtip-c6">
        <span>点击进入C6</span>
        <button type="button" class="btn btn-primary next-step next-step-c6">下一步</button>
        <i class="i-c6"></i>
    </div>
    <div class="teachtip teachtip-collect">
        <span>点击进入收藏夹</span>
        <button type="button" class="btn btn-primary next-step next-step-collect">下一步</button>
        <i class="i-collect"></i>
    </div>
    <div class="teachtip teachtip-picture">
        <span>点击进入图片库</span>
        <button type="button" class="btn btn-primary next-step next-step-picture">下一步</button>
        <i class="i-picture"></i>
    </div>
    <div class="teachtip teachtip-discuss">
        <span>点击进入论坛</span>
        <button type="button" class="btn btn-primary next-step next-step-discuss">下一步</button>
        <i class="i-discuss"></i>
    </div>
    <div class="teachtip teachtip-video">
        <span>点击进入视频库</span>
        <button type="button" class="btn btn-primary next-step next-step-video">下一步</button>
        <i class="i-video"></i>
    </div>
        <?php endif; ?>
    </div>
      <!-- Main row -->
      <div class="row">
        <!-- Left col -->
        <section class="col-lg-6 connectedSortable">

            <!-- quick email widget 邮件模块  emailListData-->
            <div class="nav-tabs-custom">
                <ul class="nav nav-tabs pull-right">
                    <li class="pull-left header">
                        <a href="<?php echo $edata['login_url'] ?>" target="_blank" title="<?php echo (L("Login")); ?>" style="color: #3c8dbc;padding: 0">
                            <i class="fa fa-envelope"></i>&nbsp; <?php echo (L("Mail List")); ?>
                        </a>
                    </li>
                    <?php if(is_array($emailList)): $num = 0; $__LIST__ = $emailList;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$e): $mod = ($num % 2 );++$num;?><li class="<?php if($e['is_main']): ?>active <?php endif; ?>"><a href="#email<?php echo $num ?>-panel" data-toggle="tab"><?php echo ($e['mailbox_suffix']); ?></a> </li><?php endforeach; endif; else: echo "" ;endif; ?>
                </ul>
                <div class="tab-content no-padding">
                    <?php if(is_array($emailListData)): $number = 0; $__LIST__ = $emailListData;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$edata): $mod = ($number % 2 );++$number;?><div class="tab-pane <?php if($edata['is_main']): ?>active<?php endif; ?>" id="email<?php echo $number ?>-panel">
                            <div class="box box-primary">
                                <div class="box-header">
                                    <div class="box-tools pull-right" data-toggle='tooltip' title='登录邮件' data-placement='left'> 
                                        <?php if ($edata['unread']): ?>
                                        <a href="javascript:;"  ><small><?php echo (L("UnRead")); ?></small>: &nbsp;<span class="label badge bg-red" ><?php echo ($edata['unread']); ?></span></a>
                                        <?php endif; ?>
                                        <a href="<?php echo $edata['login_url'] ?>" target="_blank" style="padding-left: 10px"><i class="outin"></i></a>
                                    </div>
                                </div>
                                <div class="box-body">
                                    <ul class="todo-list">
                                        <?php if (count($edata['data'])): ?>
                                        <?php foreach ($edata['data'] as $key => $val) { ?>
                                        <li class="row" style="margin:0px;">
                                            <div class="col-md-3">
                                              <span class="handle">
                                                <i class="fa fa-ellipsis-v"></i>
                                                <i class="fa fa-ellipsis-v"></i>
                                              </span>
                                                <span class="text-overflow"><?php echo foatmack($val->Sender); ?></span>
                                            </div>

                                          <span class="mailbox-subject text-overflow col-md-6 col-xs-12">
                                          <a href="javascript:;" data="<?php echo $val->MailID ?>" key="<?php echo $number ?>" class="reJumpUrl" target="_black" >
                                              <?php
 $new_label = 'label-default'; if($val->New) : $new_label = 'label-danger'; ?>
                                              <strong> <?php echo $val->Subject ?> </strong>
                                              <?php else: ?>
                                              <?php echo $val->Subject ?>
                                              <?php endif; ?>
                                          </a></span>
                                            <small class="label  mailbox-date pull-right <?php echo $new_label ?> hidden-xs col-md-2"><i class="fa fa-clock-o"></i> <?php echo date('Y-m-d',$val->Time); ?></small>
                                        </li>
                                        <?php } ?>
                                        <?php else: ?>
                                        <li>
                                            <?php echo (L("No mail for a moment")); ?>
                                        </li>
                                        <?php endif; ?>
                                    </ul>
                                </div>
                            </div>
                        </div><?php endforeach; endif; else: echo "" ;endif; ?>
                </div>
            </div>

            <!-- Tabs within a box   C6模块 -->
            <div class="nav-tabs-custom">
                <ul class="nav nav-tabs pull-right">
                    <li data-toggle='tooltip' title='登录C6' data-placement='left'><a href="<?php echo $c6_login_url ?>" target="_blank" style="color: #3c8dbc"><i class="outin"></i></a></li>
                    <li><a href="#c6-toread" data-toggle="tab"><?php echo (L("To Read")); ?> &nbsp;<span class="label label-danger toreader-label"></span></a></li>
                    <li class="active"><a href="#c6-todo" data-toggle="tab"><?php echo (L("To Do")); ?>&nbsp;<span class="label label-danger todo-label"></span></a> </li>
                    <li class="pull-left header"><a href="<?php echo $c6_login_url ?>" target="_blank" title="<?php echo (L("Login")); ?>" style="color: #3c8dbc;padding: 0"><i class="fa fa-inbox"></i> C6<?php echo (L("System")); ?></a></li>
                </ul>
                <div class="tab-content no-padding">
                    <!-- Morris chart - Sales -->
                    <div class="  tab-pane active" id="c6-todo" >
                        <!-- TO DO List -->
                        <div class="box box-primary" id="todo-lists">
                            <div class="box-body">
                                <ul class="todo-list">
                                </ul>
                            </div><!-- /.box-body -->
                        </div><!-- /.box -->

                    </div>
                    <div class=" tab-pane" id="c6-toread">
                        <!-- TO DO List -->
                        <div class="box box-primary" id="toreader-rlists">
                            <div class="box-body">
                                <ul class="todo-list"></ul>
                            </div><!-- /.box-body -->
                        </div><!-- /.box -->
                    </div>
                </div>
            </div>

            <!--favorites 收藏夹-->
            <div class="box box-info" id="ets-favorites-lists">
                <div class="box-header">
                    <a href="/one/Link/Link" target="_blank" title="<?php echo (L("Login")); ?>" >
                        <i class="fa  fa-gratipay"></i>
                        <h3 class="box-title"><?php echo (L("favorites")); ?></h3>
                    </a>
                    <div class="box-tools pull-right" data-toggle='tooltip' title='登录收藏夹' data-placement='left'>
                        <a href="/one/Link/Link" target="_blank" style="padding-left: 10px"><i class="outin"></i></a>
                    </div>
                </div><!-- /.box-header -->
                <div class="box-body">
                    <ul class="todo-list">
                        <?php if(count($conllectLink)): ?>
                        <?php foreach ($conllectLink as $key => $link) { ?>
                        <li class="row " style="margin:0px;">
                            <div class="col-md-1">
                              <span class="handle">
                                <i class="fa fa-ellipsis-v"></i>
                                <i class="fa fa-ellipsis-v"></i>
                              </span>
                            </div>
                            <span class="mailbox-subject text-overflow col-md-9 col-xs-12">
                              <a href="<?php echo ($link['url']); ?>"  target="_black" >
                                  <?php if($link['model'] == 'link'): ?>
                                  <?php echo L($link['title']); ?>
                                  <?php else: ?>
                                  <?php echo $link['title']; ?>
                                  <?php endif; ?>
                              </a>
                            </span>
                            <!-- Emphasis label -->
                           <a href="javascript:;" url="/one/Index/removeFavoritesLink/id/<?php echo ($link['id']); ?>/model/<?php echo ($link['model']); ?>" class="ajax-get pull-right hidden-xs  col-md-2 text-right "><small class="label label-info"><?php echo (L("Remove")); ?></small></a>
                        </li>
                        <?php } ?>
                        <?php else: ?>
                        <li> <?php echo (L("No favorites")); ?></li>
                        <?php endif; ?>
                    </ul>
                </div><!-- /.box-body -->
            </div><!-- /.box -->

            <!-- 图片模块 -->
            <div class="box box-default">
                <div class="box-header">
                    <a href="<?php echo U('/Picture/index'); ?>" target="_blank" title="<?php echo (L("Login")); ?>">
                    <span class="glyphicon glyphicon-picture" aria-hidden="true"></span>
                    <h3 class="box-title"><?php echo (L("Picuture")); ?></h3>
                    </a>
                    <div class="box-tools pull-left" data-toggle='tooltip' title='登录图片库' data-placement='left'>
                        <a href="<?php echo U('/Picture/index'); ?>" target="_blank"><i class="outin"></i></a>
                    </div>
                </div>
                <div class="box-body">
                	  <ul class="list-unstyled list thumbnails">
                            <?php if(is_array($picturelist)): $i = 0; $__LIST__ = $picturelist;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i; if($vo['origin_url']||$vo['thumbnail_url']): ?>
                                <li class="col-md-6 col-sm-12 ">
                                    <div class="thumbnail" style="position: relative;">
                                        <a href="<?php echo getHttpHost($vo['impression_url']);?>" onclick="checkPicture(this)" data-title="<?php echo ($vo['title_cn']); echo ($vo['title_en']); ?>" data-lightbox="group"><img src="<?php echo getHttpHost($vo['thumbnail_url']);?>"
                                            class="img-responsive thumbnail margin no-padding thumbnail-img thumbnail-img2" style="max-height: 240px" /></a>

                                        <div class="caption caption-one" >
                                            <div class="col-md-9">                                               
                                               <h5 ><?php echo ($vo['title_cn']); echo ($vo['title_en']); ?></h5>
                                            </div>
											<div class=" col-md-3">
                                                    <a target="_blank" href="/one/Picture/dowload?imageurl=<?php echo $vo['origin_url'];?>"   class="btn   pull-right btn-primary-a"></a>
                                            </div>
                                        </div>
                                    </div>
                                </li>
                                <?php endif; endforeach; endif; else: echo "" ;endif; ?>
                    </ul>
                </div>
            </div>

        </section><!-- /.Left col -->
        <!-- right col (We are only adding the ID to make the widgets sortable)-->
        <section class="col-lg-6 connectedSortable">

            <!-- Forun Chat box  论坛模块-->
            <div class="box box-success">
                <div class="box-header with-border">
                    <a href="<?php echo ($forum_login_url); ?>" target="_blank" title="<?php echo (L("Login")); ?>">
                        <i class="fa fa-comments-o"></i>
                        <h3 class="box-title"><?php echo (L("Internal Forum")); ?></h3>
                    </a>
                    <div class="box-tools pull-right" data-toggle='tooltip' title='登录论坛' data-placement='left'>
                        <!--<button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>-->
                        <!--<button class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button>-->
                        <a href="<?php echo ($forum_login_url); ?>" target="_blank"><i class="outin"></i></a>
                    </div>
                </div>
                <div class="box-body chat" id="chat-box">
                    <?php Vendor('Forum.ForumApi'); $ForumApi = new \ForumApi();?>
                    <?php foreach ($forumMessageList as $key => $item) { ?>

                    <div class="item">
                        <img src="<?php echo $item['UserPic']; ?>" alt="user image" class="online" onerror="javascript:this.src='http://oa.yuntuservice.com:55556/images/common/noavatar_small.gif';" alt="pic"/>
                        <p class="message">
                            <a href="javascript:;" class="name">
                                <small class="text-muted pull-right hidden-xs"><i class="fa fa-clock-o"></i> <?php echo $item['MessageTime']; ?></small>
                                <!--<small class="text-muted pull-right" style="margin-right:10px"> <?php echo (L("Views")); ?>：<?php echo $item['Views'] ?> </small>-->
                                <!--<small class="text-muted pull-right" style="margin-right:10px"> <?php echo (L("Replies")); ?>：<?php echo $item['Replies'] ?></small>-->
                                <?php echo $item['MessageUser']; ?>
                            </a>
                            <a href="<?php echo $ForumApi->getTitleUrl($item['MessageTid']); ?>" target="_blank">
                                <?php echo $item['MessageTitle']; ?>
                            </a>
                        </p>
                    </div><!-- /.item -->
                    <?php } ?>
                </div><!-- /.chat -->
            </div><!-- /.box (chat box) -->

            <!-- 视频模块 -->
            <div class="box box-default" id="home_video">
                <div class="box-header">
                    <a href="<?php echo U('/Video/index'); ?>" target="_blank" title="<?php echo (L("Login")); ?>">
                        <span class="glyphicon glyphicon-facetime-video" aria-hidden="true"></span>
                        <h3 class="box-title"><?php echo (L("Video")); ?></h3>
                    </a>
                    <div class="box-tools pull-right" data-toggle='tooltip' title='登录视频' data-placement='left'>
                        <a href="<?php echo U('/Video/index'); ?>" target="_blank"><i class="outin"></i></a>
                    </div>
                </div>
                <div class="box-body">
                    <ul class="list-unstyled list thumbnails">
                        <?php if(is_array($videolist)): $i = 0; $__LIST__ = $videolist;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i; if($vo['youku_url']||$vo['youtube_url']): ?>
                            <li class="col-md-6 col-sm-12 ">
                                <div class="thumbnail thumbnail-img" style="position: relative;">
                                    <img src="<?php echo $vo['video_thumbnail']==''?'/one/Public/img/video_default.png':$vo['video_thumbnail'] ?>"
                                         class="img-responsive thumbnail margin no-padding" style="max-height: 240px" />

                                    <div class="caption">
                                        <div class="col-md-9">
                                            <h5 ><?php echo ($vo['title_cn']); echo ($vo['title_en']); ?></h5>
                                        </div>
                                        <div class=" col-md-3">
                                            <a href="javascript:;" class="image-btn-primary pull-right" data-title="video detail" data-toggle="modal" data-target="#video-detail" data="<?php echo ($vo['id']); ?>"
                                               onclick="ajaxLoadViewDetail(this)"></a>
                                        </div>
                                    </div>
                                </div>
                            </li>
                            <?php endif; endforeach; endif; else: echo "" ;endif; ?>
                    </ul>
                </div>
            </div>

            <div class="modal fade" id="video-detail" tabindex="-1" role="dialog" aria-labelledby="viewModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close chacha1" data-dismiss="modal" aria-hidden="true" >&times;</button>
                <h4 class="modal-title" id="viewModalLabel"><?php echo (L("视频详情")); ?>  &nbsp;&nbsp;<small class="text-danger" style="font-size: 10px"><?php echo (L("China, please see YouTube video VPN")); ?></small></h4>

            </div>
            <div class="modal-body ">
                <div class="row">
                    <div class="col-md-12">
                        <div class="embed-responsive embed-responsive-16by9">
                            <iframe  height="auto"  src="" frameborder=0 allowfullscreen  class="detail detail-video"></iframe>
                            <div id="no-find-video" class="text-center"></div>
                        </div>
                        <input type="hidden" value="" class="video-youku" />
                        <input type="hidden" value="" class="video-youtube" />
                    </div>
                </div>
                <br/>
                <div class="row">
                    <div class="nav-tabs-custom">
                        <ul class="nav nav-tabs pull-right">
                            <li class="pull-left active"><a href="#toggle_info"  data-toggle="tab"><?php echo (L("Basic information")); ?></a></li>
                            <li class="pull-left"><a href="#toggle_share"  data-toggle="tab"><?php echo (L("Share")); ?></a></li>
                            <li class="pull-right"><a href="javascript:;" class="toggle-video no-padding"><i class="fa fa-youtube-play" title="YouTuBe"></i></a></li>
                        </ul>
                        <div class="tab-content no-padding ">
                            <div class=" tab-pane active" id="toggle_info">
                                <table  class="table table-bordered table-striped dataTable ">
                                    <tbody>
                                        <tr>
                                            <td class="col-md-3 col-xs-6">  <label><?php echo (L("title")); ?>：</label> </td>
                                            <td class="col-md-9 col-xs-6">  <span class="title_name"></span> </td>
                                        </tr>
                                        <tr>
                                            <td class="col-md-3 col-xs-6">
                                                <label><?php echo (L("creator")); ?>：</label>
                                            </td>
                                            <td class="col-md-9 col-xs-6">
                                                <span class="creator"></span>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="col-md-3 col-xs-6">
                                                <label><?php echo (L("created_at")); ?>：</label>
                                            </td>
                                            <td class="col-md-9 col-xs-6">
                                                <span class="created_at"></span>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="col-md-3 col-xs-6">
                                                <label><?php echo (L("category")); ?>：</label>
                                            </td>
                                            <td class="col-md-9">
                                                <span class="category"></span>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="col-md-3 col-xs-6">
                                                <label><?php echo (L("people")); ?>：</label>
                                            </td>
                                            <td class="col-md-9 col-xs-6">
                                                <span class="people"></span>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="col-md-3 col-xs-6"><label><?php echo (L("tag")); ?>：</label></td>
                                            <td class="col-md-9 col-xs-6">
                                                <span class="tag"></span>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="col-md-3 col-xs-6">
                                                <label><?php echo (L("intro")); ?>：</label>
                                            </td>
                                            <td class="col-md-9 col-xs-6">
                                                <span class="intro"></span>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>
                            <div class=" share-panel tab-pane" id="toggle_share">
                                <form role="form" action="/one/Video/shareVideoByEmail" method="post" id="videoViewForm" name="videoViewForm">
                                    <div class="box">
                                        <div class="box-body">
                                            <div class="form-group">
                                                <label><?php echo (L("title")); ?>：</label>
                                                <input type="text" class="form-control share_title" name="share_title" placeholder="Enter ..." />
                                                <input type="hidden" class="form-control share_link" readonly="true" name="share_link" placeholder="Enter ..." />
                                            </div>
                                            <div class="form-group">
                                                <div class="row">
                                                    <div class="col-md-6 ">
                                                        <label><?php echo (L("password")); ?>：</label>
                                                        <input type="text" class="form-control" name="share_password" placeholder="Enter ..." />
                                                    </div>
                                                    <div class="col-md-6 ">
                                                        <label><?php echo (L("Email")); ?>：</label>
                                                        <input type="text" name="email" class="form-control  " />
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="form-group">
                                                <label><?php echo (L("Message")); ?>：</label>
                                                <textarea name="message" rows="2" cols="57" class="form-control"></textarea>
                                            </div>
                                            <div class="form-group">
                                                <div class="copytext"></div>
                                            </div>
                                        </div>
                                        <div class="box-footer">
                                            <input type="hidden" name="ajax" value="1">
                                            <button type="button" id="getShareVideoLink" class="btn btn-primary pull-left" url="/one/Video/getShareVideoLink"><?php echo (L("Get Link")); ?></button>
                                            <button type="submit" class="btn btn-primary pull-right"><?php echo (L("Send Email")); ?></button>
                                        </div>
                                    </div>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>


        </section><!-- right col -->
      </div><!-- /.row (main row) -->
        <!--<div class="row">-->
            <!--<section class="col-md-6">-->
    <!---->
            <!--</section>-->
        <!--</div>-->
    </section><!-- /.content -->



        </section>

      </div><!-- /.content-wrapper -->
      
          
<footer class="main-footer">
  <div class="pull-right hidden-xs">
    <b>Version</b> 1.0
  </div>
  <strong>Copyright &copy; 2015 <a href="#">Phalanx Holding</a>.</strong> All rights reserved.
</footer>
      <!---->
      <!--&lt;!&ndash; Control Sidebar &ndash;&gt;      -->
      <!--<aside class="control-sidebar control-sidebar-dark">                -->
        <!--&lt;!&ndash; Create the tabs &ndash;&gt;-->
        <!--<ul class="nav nav-tabs nav-justified control-sidebar-tabs">-->
          <!--<li><a href="#control-sidebar-home-tab" data-toggle="tab"><i class="fa fa-home"></i></a></li>-->
          <!---->
          <!--<li><a href="#control-sidebar-settings-tab" data-toggle="tab"><i class="fa fa-gears"></i></a></li>-->
        <!--</ul>-->
        <!--&lt;!&ndash; Tab panes &ndash;&gt;-->
        <!--<div class="tab-content">-->
          <!--&lt;!&ndash; Home tab content &ndash;&gt;-->
          <!--<div class="tab-pane" id="control-sidebar-home-tab">-->
            <!--<h3 class="control-sidebar-heading">Recent Activity</h3>-->
            <!--<ul class='control-sidebar-menu'>-->
              <!--<li>-->
                <!--<a href='javascript::;'>-->
                  <!--<i class="menu-icon fa fa-birthday-cake bg-red"></i>-->
                  <!--<div class="menu-info">-->
                    <!--<h4 class="control-sidebar-subheading">Langdon's Birthday</h4>-->
                    <!--<p>Will be 23 on April 24th</p>-->
                  <!--</div>-->
                <!--</a>-->
              <!--</li>-->
              <!--<li>-->
                <!--<a href='javascript::;'>-->
                  <!--<i class="menu-icon fa fa-user bg-yellow"></i>-->
                  <!--<div class="menu-info">-->
                    <!--<h4 class="control-sidebar-subheading">Frodo Updated His Profile</h4>-->
                    <!--<p>New phone +1(800)555-1234</p>-->
                  <!--</div>-->
                <!--</a>-->
              <!--</li>-->
              <!--<li>-->
                <!--<a href='javascript::;'>-->
                  <!--<i class="menu-icon fa fa-envelope-o bg-light-blue"></i>-->
                  <!--<div class="menu-info">-->
                    <!--<h4 class="control-sidebar-subheading">Nora Joined Mailing List</h4>-->
                    <!--<p>nora@example.com</p>-->
                  <!--</div>-->
                <!--</a>-->
              <!--</li>-->
              <!--<li>-->
                <!--<a href='javascript::;'>-->
                  <!--<i class="menu-icon fa fa-file-code-o bg-green"></i>-->
                  <!--<div class="menu-info">-->
                    <!--<h4 class="control-sidebar-subheading">Cron Job 254 Executed</h4>-->
                    <!--<p>Execution time 5 seconds</p>-->
                  <!--</div>-->
                <!--</a>-->
              <!--</li>-->
            <!--</ul>&lt;!&ndash; /.control-sidebar-menu &ndash;&gt;-->

            <!--<h3 class="control-sidebar-heading">Tasks Progress</h3> -->
            <!--<ul class='control-sidebar-menu'>-->
              <!--<li>-->
                <!--<a href='javascript::;'>               -->
                  <!--<h4 class="control-sidebar-subheading">-->
                    <!--Custom Template Design-->
                    <!--<span class="label label-danger pull-right">70%</span>-->
                  <!--</h4>-->
                  <!--<div class="progress progress-xxs">-->
                    <!--<div class="progress-bar progress-bar-danger" style="width: 70%"></div>-->
                  <!--</div>                                    -->
                <!--</a>-->
              <!--</li> -->
              <!--<li>-->
                <!--<a href='javascript::;'>               -->
                  <!--<h4 class="control-sidebar-subheading">-->
                    <!--Update Resume-->
                    <!--<span class="label label-success pull-right">95%</span>-->
                  <!--</h4>-->
                  <!--<div class="progress progress-xxs">-->
                    <!--<div class="progress-bar progress-bar-success" style="width: 95%"></div>-->
                  <!--</div>                                    -->
                <!--</a>-->
              <!--</li> -->
              <!--<li>-->
                <!--<a href='javascript::;'>               -->
                  <!--<h4 class="control-sidebar-subheading">-->
                    <!--Laravel Integration-->
                    <!--<span class="label label-waring pull-right">50%</span>-->
                  <!--</h4>-->
                  <!--<div class="progress progress-xxs">-->
                    <!--<div class="progress-bar progress-bar-warning" style="width: 50%"></div>-->
                  <!--</div>                                    -->
                <!--</a>-->
              <!--</li> -->
              <!--<li>-->
                <!--<a href='javascript::;'>               -->
                  <!--<h4 class="control-sidebar-subheading">-->
                    <!--Back End Framework-->
                    <!--<span class="label label-primary pull-right">68%</span>-->
                  <!--</h4>-->
                  <!--<div class="progress progress-xxs">-->
                    <!--<div class="progress-bar progress-bar-primary" style="width: 68%"></div>-->
                  <!--</div>                                    -->
                <!--</a>-->
              <!--</li>               -->
            <!--</ul>&lt;!&ndash; /.control-sidebar-menu &ndash;&gt;         -->

          <!--</div>&lt;!&ndash; /.tab-pane &ndash;&gt;-->
          <!--&lt;!&ndash; Stats tab content &ndash;&gt;-->
          <!--<div class="tab-pane" id="control-sidebar-stats-tab">Stats Tab Content</div>&lt;!&ndash; /.tab-pane &ndash;&gt;-->
          <!--&lt;!&ndash; Settings tab content &ndash;&gt;-->
          <!--<div class="tab-pane" id="control-sidebar-settings-tab">            -->
            <!--<form method="post">-->
              <!--<h3 class="control-sidebar-heading">General Settings</h3>-->
              <!--<div class="form-group">-->
                <!--<label class="control-sidebar-subheading">-->
                  <!--Report panel usage-->
                  <!--<input type="checkbox" class="pull-right" checked />-->
                <!--</label>-->
                <!--<p>-->
                  <!--Some information about this general settings option-->
                <!--</p>-->
              <!--</div>&lt;!&ndash; /.form-group &ndash;&gt;-->

              <!--<div class="form-group">-->
                <!--<label class="control-sidebar-subheading">-->
                  <!--Allow mail redirect-->
                  <!--<input type="checkbox" class="pull-right" checked />-->
                <!--</label>-->
                <!--<p>-->
                  <!--Other sets of options are available-->
                <!--</p>-->
              <!--</div>&lt;!&ndash; /.form-group &ndash;&gt;-->

              <!--<div class="form-group">-->
                <!--<label class="control-sidebar-subheading">-->
                  <!--Expose author name in posts-->
                  <!--<input type="checkbox" class="pull-right" checked />-->
                <!--</label>-->
                <!--<p>-->
                  <!--Allow the user to show his name in blog posts-->
                <!--</p>-->
              <!--</div>&lt;!&ndash; /.form-group &ndash;&gt;-->

              <!--<h3 class="control-sidebar-heading">Chat Settings</h3>-->

              <!--<div class="form-group">-->
                <!--<label class="control-sidebar-subheading">-->
                  <!--Show me as online-->
                  <!--<input type="checkbox" class="pull-right" checked />-->
                <!--</label>                -->
              <!--</div>&lt;!&ndash; /.form-group &ndash;&gt;-->

              <!--<div class="form-group">-->
                <!--<label class="control-sidebar-subheading">-->
                  <!--Turn off notifications-->
                  <!--<input type="checkbox" class="pull-right" />-->
                <!--</label>                -->
              <!--</div>&lt;!&ndash; /.form-group &ndash;&gt;-->

              <!--<div class="form-group">-->
                <!--<label class="control-sidebar-subheading">-->
                  <!--Delete chat history-->
                  <!--<a href="javascript::;" class="text-red pull-right"><i class="fa fa-trash-o"></i></a>-->
                <!--</label>                -->
              <!--</div>&lt;!&ndash; /.form-group &ndash;&gt;-->
            <!--</form>-->
          <!--</div>&lt;!&ndash; /.tab-pane &ndash;&gt;-->
        <!--</div>-->
      <!--</aside>&lt;!&ndash; /.control-sidebar &ndash;&gt;-->
      <!-- Add the sidebar's background. This div must be placed
           immediately after the control sidebar -->
      <div class='control-sidebar-bg'></div>
</div><!-- ./wrapper -->

      

     <!-- jQuery 2.1.4 -->
    <script src="/one/Public/plugins/jQuery/jQuery-2.1.4.min.js"></script>

    <!-- ajax Jquery form -->
    <script src="/one/Public/dist/js/jquery.form.js" type="text/javascript"></script>
    <!-- custom extends js -->
    <script src="/one/Public/dist/js/custom.extends.js" type="text/javascript"></script>
    <!-- jQuery UI 1.11.2 -->
    <script src="/one/Public/plugins/jQueryUI/jquery-ui.min.js" type="text/javascript"></script>
    <!-- Resolve conflict in jQuery UI tooltip with Bootstrap tooltip -->
    <script>
      $.widget.bridge('uibutton', $.ui.button);
    </script>
    <!-- Bootstrap 3.3.2 JS -->
    <script src="/one/Public/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
    <!-- Slimscroll -->
    <script src="/one/Public/plugins/slimScroll/jquery.slimscroll.min.js" type="text/javascript"></script>
    <!-- AdminLTE App -->
    <script src="/one/Public/dist/js/app.min.js" type="text/javascript"></script>

    <!-- AdminLTE for demo purposes -->
    <script src="/one/Public/dist/js/demo.js" type="text/javascript"></script>

    <!-- Bootstrap WYSIHTML5 -->
    <script src="/one/Public/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.min.js" type="text/javascript"></script>

    <!--bootstrap Validator-->
    <script src="/one/Public/dist/js/bootstrapValidator.js" type="text/javascript"></script>
    <script src="/one/Public/dist/js/language/zh_CN.js" type="text/javascript"></script>

    <!--<script type="text/javascript" src="/one/Public/dist/js/jquery.touchSwipe.min.js"></script>-->

    
        <!-- AdminLTE dashboard demo (This is only for demo purposes)
    <script src="/one/Public/dist/js/pages/dashboard.js" type="text/javascript"></script>  -->
    <!-- Morris.js charts
    <script src="/one/Public/plugins/raphael/raphael-min.js"></script>
    <!-- Sparkline -->
    <script src="/one/Public/plugins/sparkline/jquery.sparkline.min.js" type="text/javascript"></script>
    <!-- jvectormap 
    <script src="/one/Public/plugins/jvectormap/jquery-jvectormap-1.2.2.min.js" type="text/javascript"></script>
    <script src="/one/Public/plugins/jvectormap/jquery-jvectormap-world-mill-en.js" type="text/javascript"></script>-->
    <!-- jQuery Knob Chart -->
    <script src="/one/Public/plugins/knob/jquery.knob.js" type="text/javascript"></script>
    <!-- daterangepicker 
    <script src="/one/Public/plugins/moment/moment.min.js" type="text/javascript"></script>
    <script src="/one/Public/plugins/daterangepicker/daterangepicker.js" type="text/javascript"></script>-->
    <!-- datepicker
    <script src="/one/Public/plugins/datepicker/bootstrap-datepicker.js" type="text/javascript"></script>-->
    <script src="/one/Public/plugins/chartjs/Chart.min.js" type="text/javascript"></script>
    <!-- FastClick -->
    <script src='/one/Public/plugins/fastclick/fastclick.min.js'></script>

    <script src='/one/Public/js/CommonPerson.js'></script>
    <link href="/one/Public/js/showLoading.css" rel="stylesheet" type="text/css" />

    <script src="/one/Public/dist/js/bootstrapValidator.js" type="text/javascript"></script>
    <script src="/one/Public/dist/js/language/zh_CN.js" type="text/javascript"></script>
    <script src="/one/Public/dist/js/validator.js" type="text/javascript"></script>
    <script src="/one/Public/fileinput/lightbox.js" type="text/javascript"></script>
    <!--<script src="/one/Public/fileinput/teach.js" type="text/javascript"></script>-->
    

  <script type="text/javascript">
  
  $(function() {
    $(".todo-list").sortable({
      placeholder: "sort-highlight",
      handle: ".handle",
      forcePlaceholderSize: true,
      zIndex: 999999
    });

//  $(".connectedSortable").sortable({
//    placeholder: "sort-highlight",
//    connectWith: ".connectedSortable",
//    handle: ".box-header, .nav-tabs",
//    forcePlaceholderSize: true,
//    zIndex: 999999
//  });
 //关闭拖拉效果
//  $(".connectedSortable .box-header, .connectedSortable .nav-tabs-custom").css("cursor", "move");

  //  $('#chat-box').slimScroll({height: '360px'});

    //获取c6 单点登陆的链接
    var  jump =  '<?php echo $c6_login_url; ?>';
 

     //如果存在代阅信息，读取数据并且显示
    <?php if ($flat_info_waiting) : ?>
      writeJsonInfo('<?php echo $flat_info_waiting; ?>','#toreader-rlists','.toreader-label');
    <?php  endif; ?>

     //如果存在代办事件，读取数据并且显示
    <?php if ($pending_work_list) : ?>
      writeJsonInfo('<?php echo $pending_work_list; ?>','#todo-lists','.todo-label');
    <?php  endif; ?>
    
    function writeJsonInfo(object,id,label) {
        var  rdata  = $.parseJSON(object);
        var  rlists = rdata.MessageList;
  
        if (rlists == null){
            var html = '<li ><?php echo (L("No data can be displayed")); ?></li>';
            $(id+' ul.todo-list').append(html);  
        } else {
            $(label).html(rlists.length);
          for (var k in rlists) {
              if (k>8) break;
              var html = '<li class="row" style="margin: 0"><div class=" col-md-3"><span class="handle"><i class="fa fa-ellipsis-v"></i> <i class="fa fa-ellipsis-v"></i> </span>' +
                      '<span class="text-overflow  text-black">'+rlists[k].ModuleTypeName+' :</span></div>';
              html += '<span class="text col-md-6"><a href="'+jump+rlists[k].MessageUrl+'" target="_blank">'+rlists[k].MessageTitle +'</a></span>';
              var day1 = new Date(rlists[k].SendTime);
              var day2 = new Date();
              var days=Math.floor((day2-day1)/(24*3600*1000));
              html += ' <small class="label label-danger hidden-xs pull-right col-md-2"><i class="fa fa-clock-o"></i> '+ days +' days</small>';
              html += '</li>';
              $(id+' ul.todo-list').append(html);  
          };
        }
    }
  });



  //刷新缓存
  $('#clear_cache_btn').bind('click',function(){
      CommonPerson.Base.LoadingPic.customFullScreenShow('update ...');
      $.post("/one/Public/refresh").done(function(data){
          if (data.status) {
              location.reload();
          }
      });
  });

  //邮件跳转
  $('.reJumpUrl').bind('click',function(){
      var mailid = $(this).attr('data');
      var object = $(this);

      CommonPerson.Base.LoadingPic.FullScreenShow();
      $.post("/one/Public/getReadMailUrl",{
          mailid:mailid,
          emailkey:object.attr('key')
      }).done(function(data){
          object.attr('href',data);
          object.unbind("click");
          CommonPerson.Base.LoadingPic.FullScreenHide();
          window.open(data, '_blank');
      });
  });



  /**
   *  视频模块
   */

  function ajaxLoadViewDetail(e) {
      var id = $(e).attr('data');
      $.post('/one/Video/viewDetail',{
          id:id
      },function(result){
          videoViewForm.reset();
          var data = $.parseJSON(result);
          var lan = '<?php echo LANG_SET ?>';
          var info = $('#toggle_info');
          var share = $('#toggle_share');
          var title = '';
          $('#no-find-video').html('');
          if (lan == 'zh-cn'){
              $('.detail.detail-video').attr('src',data.youku_url).attr('lan','zh-cn');
              title = data.title_cn;
              share.find('.share_link').val(data.youku_url);
              $('.toggle-video').html('<img src="/one/Public/img/YouTube-logo.png" width="65px" title="YouTuBe" />');
              if (!data.youku_url){
                  $('#no-find-video').html('<img src="/one/Public/img/exclamation.png"  />');
              }
          }else {
              title = data.title_en;
              $('.detail.detail-video').attr('src',data.youtube_url).attr('lan','en-us');
              share.find('.share_link').val(data.youtube_url);
              $('.toggle-video').html('<img src="/one/Public/img/Yk-logo.png" width="65px" title="YouKu" />');
              if (!data.youtube_url){
                  $('#no-find-video').html('<img src="/one/Public/img/exclamation.png"  />');
              }
          }
          $('.video-youtube').val(data.youtube_url);
          $('.video-youku').val(data.youku_url);

          info.find('.title_name').html(title);
          share.find('.share_title').val(title);
          share.find('.video_id').val(data.id);

          info.find('.intro').html(data.intro);
          info.find('.people').html(data.people);
          info.find('.tag').html(data.tag);
          info.find('.created_at').html(data.created_at);
          info.find('.category').html(data.category);
          info.find('.creator').html(data.creator);
          $('#videoViewForm .copytext').html('');
      });
  }

  $(function() {

      var nofindImg = '<img src="/one/Public/img/exclamation.png"  class="img-responsive" style=" margin: 0 auto;" />';
    //视频平台切换
      $('.toggle-video').bind('click',function(){
          var video = $('.detail.detail-video');
          var youtube_url = $('.video-youtube').val();
          var youku_url = $('.video-youku').val();
          $('#no-find-video').html('');
          if (video.attr('lan') == 'zh-cn'){
              if(youtube_url == ''){
                  $('#no-find-video').html(nofindImg);
              }
              video.attr('src',youtube_url).attr('lan','en-us');
              $('#toggle_share').find('.share_link').val(youtube_url);
              $(this).html('<img src="/one/Public/img/Yk-logo.png" width="65px" title="YouKu"  />');
          } else {
              if(youku_url == ''){
                  $('#no-find-video').html(nofindImg);
              }
              video.attr('src', youku_url).attr('lan', 'zh-cn');
              $('#toggle_share').find('.share_link').val(youku_url);

              $(this).html('<img src="/one/Public/img/YouTube-logo.png" width="65px" title="YouTuBe"  />');
          }

      });


      $('#home_video .thumbnail').hover(function(){
          $(this).find('.caption').toggle();
      });
      iniAjaxFormDialog('#videoViewForm','#video-detail',true);
      Validator('videoViewForm');

  });

    $('.thumbnail').hover(function(){
          $(this).find('.caption-one').toggle();
      });

    // 查看器大图添加标题，下载按钮
     function checkPicture(e){
               var href=$(e).next().find(".btn-primary-a").attr("href");
               var target=$(e).attr("target");
                $(".lb-container").append('<div class=" col-md-3 btn-primary-a1-1"><a target="_blank"href="'+ href+ '"class="btn   pull-right btn-primary-a1" onclick="window.open(this.href);"></a></div></div>');
                $(".btn-primary-a1-1").css({"position":"absolute","right":"0","bottom":"20px","z-index":"1000"});
                $(".btn-primary-a1").css({"width":"92px","height":"30px","background":"url(/one/Public/img/xiazai.png) center center no-repeat"});
            }
   </script>


    <script src="/one/Public/ie/jquery.placeholder.min.js" type="text/javascript"></script>
    <script type="text/javascript">
    $(function () {
        // Invoke the plugin
        $('input, textarea').placeholder();
    });
    </script>
    </div>
    </body>
</html>